
package pl.edu.agh.mgr.hotel.ws.client;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.7.0
 * 2013-03-05T18:55:42.068+01:00
 * Generated source version: 2.7.0
 * 
 */
public final class DataService30_DataService30Port_Client {

    private static final QName SERVICE_NAME = new QName("http://ws.hotel.mgr.agh.edu.pl/", "DataService30Service");

    private DataService30_DataService30Port_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = DataService30Service.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        DataService30Service ss = new DataService30Service(wsdlURL, SERVICE_NAME);
        DataService30 port = ss.getDataService30Port();  
        
        {
        System.out.println("Invoking getHotelData...");
        pl.edu.agh.mgr.hotel.ws.client.DataRequest _getHotelData_arg0 = new pl.edu.agh.mgr.hotel.ws.client.DataRequest();
        _getHotelData_arg0.setName("Name-242227548");
        java.util.List<pl.edu.agh.mgr.hotel.ws.client.Query> _getHotelData_arg0Queries = new java.util.ArrayList<pl.edu.agh.mgr.hotel.ws.client.Query>();
        pl.edu.agh.mgr.hotel.ws.client.Query _getHotelData_arg0QueriesVal1 = new pl.edu.agh.mgr.hotel.ws.client.Query();
        _getHotelData_arg0QueriesVal1.setAttribute("Attribute2080967264");
        _getHotelData_arg0QueriesVal1.setValue("Value1169896809");
        _getHotelData_arg0Queries.add(_getHotelData_arg0QueriesVal1);
        _getHotelData_arg0.getQueries().addAll(_getHotelData_arg0Queries);
        pl.edu.agh.mgr.hotel.ws.client.DataResponse _getHotelData__return = port.getHotelData(_getHotelData_arg0);
        System.out.println("getHotelData.result=" + _getHotelData__return);


        }

        System.exit(0);
    }

}
